/*
 * Copyright 2016-2017 TVI Go Easy.
 * Created on 2017/4/23 15:40
 */
package org.mechanic.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 结果集为空时抛出的异常
 *
 * @author mechanic
 * @version 0.0.1
 */
@ResponseStatus(HttpStatus.NOT_FOUND)
public class NoSqlResultException extends RuntimeException {

    private String message;

    public NoSqlResultException(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
